import request from '@/utils/request'

// 查询出厂计划列表
export function listProduceOutFactoryPlan(query) {
  return request({
    url: '/produce/produce-out-factory-plan/list',
    method: 'get',
    params: query
  })
}

// 查询出厂计划详细
export function getProduceOutFactoryPlan(id) {
  return request({
    url: '/produce/produce-out-factory-plan/' + id,
    method: 'get'
  })
}

// 新增出厂计划
export function addProduceOutFactoryPlan(data) {
  return request({
    url: '/produce/produce-out-factory-plan',
    method: 'post',
    data: data
  })
}

// 修改出厂计划
export function updateProduceOutFactoryPlan(data) {
  return request({
    url: '/produce/produce-out-factory-plan',
    method: 'put',
    data: data
  })
}

// 删除出厂计划
export function delProduceOutFactoryPlan(id) {
  return request({
    url: '/produce/produce-out-factory-plan/' + id,
    method: 'delete'
  })
}

// 逻辑删除出厂计划
export function removedProduceOutFactoryPlan(id) {
  return request({
    url: '/produce/produce-out-factory-plan/' + id,
    method: 'delete'
  })
}
